{% extends "promos/base.html" %}
{% load i18n %}

{% block title %}Add/Edit Promo{% endblock %}

{% block jquery %}
    {{ block.super }}
    $("#id_relevance_begins").datepicker({
        altField:'input#id_relevance_begins',
        appendText: '(yyyy-mm-dd)',
        altFormat: 'yy-mm-dd'});
    $("#id_relevance_ends").datepicker({
        altField:'input#id_relevance_ends',
        appendText: '(yyyy-mm-dd)',
        altFormat: 'yy-mm-dd'});
{% endblock %}


{% block main_content %}
<h1>{{ promo.headline }}</h1>
<div class="edit-promo-tabs">
    <div class="tab-links">
        <a href="" rel="promo-info" class="active">Pitch</a>
        <a href="{% url promos_promo_add_edit_point promo_id=promo.id %}" rel="promo-info" title="Geotag">Geotag</a>
        <a href="{% url promos_promo_image_list promo_id=promo.id %}">Images</a>
        <a href="{% url promos_promo_link_list promo_id=promo.id %}">Related Links</a>
        <a href="{% url promos_promo_date_list promo_id=promo.id %}">Suggested Dates</a>
        <a href="{% url promos_promo_billboard_list promo_id=promo.id %}">Billboards</a>
        <a href="{% url promos_promo_detail promo_id=promo.id %}">Detail</a>
        <br class="clearboth" />
    </div>
    <div class="tab-contents">

        <form action="." method="post" enctype="multipart/form-data">
            <fieldset>
            <table>
            {{ form }}
            </table>
            <input id="id_submit" type="submit" value="Submit" />
            <a href="{% url promos_promo_list %}">Cancel</a>
            </fieldset>
        </form>
    </div>
</div>

{% endblock %}



{% block subnav %}
<h2>{% trans "Links" %}</h2>
<ul class="action-links">
    <li><a href="{% url promos_promo_list %}">promo list</a></li>
    <li><a href='{% url promos_promo_billboard_calendar_now promo_id=promo.id %}'>Calendar</a></li>
 </ul>
{% endblock %}


